package com.yueliang.service;

import com.alibaba.fastjson.JSONObject;
import com.yueliang.bean.Key;
import springfox.documentation.spring.web.json.Json;

import java.io.IOException;

public interface DeviceService {

    String getDeviceList() throws IOException;

    public JSONObject getDeviceDetailsById(String id);

    public Boolean updateDeviceKey(String id, Key key, Boolean force_offline) throws IOException;

    JSONObject getBase64key();

    Boolean deleteDeviceById(String deviceId) throws IOException;

    JSONObject getDeviceImage(String deviceId) throws IOException;

    JSONObject getDeviceData(String deviceId) throws IOException;

    String sendDirective(String deviceId, String content, Integer timeout) throws IOException;

}
